<template>
	<cl-page statusBarBackground="#fff" background-color="#F1F1F1" :fullscreen="true">
		<cl-sticky>
			<cl-topbar
				:border="false"
				background-color="#fff"
				color="#333"
				:title="t('bill.history.title')"
			/>
		</cl-sticky>
		<view class="page-info animate__animated animate__fadeIn">
			<view class="list">
				<view class="date">{{ cache.lang == "zh" ? "2018年" : "The year 2018" }}</view>
				<view
					class="item flex flex-between align-center"
					v-for="(item, index) in 12"
					@click="router.push('/pages/user/bill/billDetail')"
				>
					<view>
						<view class="t1"
							>{{ 12 - index
							}}{{ cache.lang == "zh" ? "月账单" : "Monthly statement" }}</view
						>
						<view class="t2">{{
							cache.lang == "zh" ? "已还清" : "Have paid off"
						}}</view>
					</view>
					<view class="t3">
						899.00
						<cl-icon name="arrow-right" color="#C7C7CC" size="44rpx"></cl-icon>
					</view>
				</view>
			</view>
			<cl-loadmore
				background-color="#f1f1f1"
				:loading="false"
				:finish="true"
				:text="$t('loadmore.text')"
				:loading-text="$t('loadmore.loadingText')"
				:finish-text="$t('loadmore.finishText')"
			></cl-loadmore>
		</view>
	</cl-page>
</template>

<script lang="ts" setup>
import { onReady } from "@dcloudio/uni-app";
import { useApp, useCool, useStore } from "/@/cool";
import { useUi } from "/$/cool-ui";
import { useI18n } from "vue-i18n";
const { locale } = useI18n();
const { t } = useI18n();
const { router, upload } = useCool();
const { user, cache } = useStore();
const ui = useUi();
const app = useApp();

const more = () => {
	router.push("/pages/user/callingCard/edit");
};
</script>

<style lang="scss" scoped>
.page-info {
	padding: 30rpx;
	box-sizing: border-box;

	.list {
		width: 100%;

		.date {
			font-family: PingFangSC;
			font-weight: 400;
			font-size: 32rpx;
			color: #999999;
			line-height: 70rpx;
			text-indent: 30rpx;
		}

		.item {
			padding: 30rpx;
			width: 100%;
			height: 120rpx;
			background: #ffffff;
			border-radius: 20rpx;
			margin-bottom: 14rpx;
			box-sizing: border-box;

			.t1 {
				font-family: PingFangSC;
				font-weight: 400;
				font-size: 32rpx;
				color: #333333;
			}

			.t2 {
				font-family: PingFangSC;
				font-weight: 400;
				font-size: 24rpx;
				color: #999999;
				margin-top: 10rpx;
			}

			.t3 {
				font-family: PingFangSC;
				font-weight: 400;
				font-size: 32rpx;
				color: #333333;
			}
		}
	}
}
</style>
